package test;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Test2 {
    public static void main(String[] args) {

        Collection c = new ArrayList();
        c.add("张三");
        c.add("李四");
        c.add("王五");
        c.add("赵六");
        c.add("孙七");
        Iterator it = c.iterator();
        it.next();
        it.remove();
        while (it.hasNext()) {
            System.out.println(it.next());
        }

        System.out.println("------------------");


    }
}
